package a02;

import util.Pair;

public class AlphaBetaTicTacToeControl extends MinMaxTicTacToeControl {
    private static final long serialVersionUID = 1L;

    private AlphaBetaGame<Pair<Byte, Byte>> ai = new AlphaBetaGame<Pair<Byte, Byte>>();

    public AlphaBetaTicTacToeControl() {
	this(new TicTacToe(), true);
    }

    public AlphaBetaTicTacToeControl(boolean visible, byte player) {
	this(new TicTacToe(), visible, player);
    }

    public AlphaBetaTicTacToeControl(TicTacToe game, boolean visible) {
	this(game,visible,game.getPlayerTwo());
    }

    public AlphaBetaTicTacToeControl(TicTacToe game, boolean visible,
	    byte player) {
	super(game, SkillConfig.TICTACTOE, visible);
	this.setGameMode1Player(true);
	this.setPlayerID(player);
    }

    public AlphaBetaGame<Pair<Byte, Byte>> getAi() {
	return this.ai;
    }

    public void setAi(AlphaBetaGame<Pair<Byte, Byte>> ai) {
	this.ai = ai;
    }



}
